package com.sys.user.controller;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sys.api.Controller.UserController;
import com.sys.api.Service.UserService;
import com.sys.common.ZuelResult;
import com.sys.exception.ServiceException;
import com.sys.pojo.OrderUser;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/orderuser")
public class UserControllerImpl implements UserController {

	@Autowired
	private UserService service;
	
	@ApiOperation(value="用户注册端口" ,notes="传一个用户过来即可")
	@PostMapping("/register")
	@Override
	public ZuelResult userRegister(@RequestBody OrderUser user) throws ServiceException {
		// TODO Auto-generated method stub
		return service.userRegister(user);
	}

	

}
